package cn.huiyunche.base.service.enums;

public enum GrabWaybillTypeEnum {
    COMPANY_ASSIGNED(30, "公司派单"),
    GRAB_BY_SELF(10, "个人接单");

    private int value;
    private String text;

    GrabWaybillTypeEnum(int value, String text) {
        this.value = value;
        this.text = text;
    }

    public String getText() {
        return text;
    }

    public int getValue() {
        return value;
    }

    public static GrabWaybillTypeEnum getByValue(int value) {
        for (GrabWaybillTypeEnum temp : GrabWaybillTypeEnum.values()) {
            if (value == temp.getValue()) {
                return temp;
            }
        }
        return null;
    }
}
